// menuId 资源id用于权限控制 页面权限
// key 用于菜单
// pageOperate 页面按钮权限

export default [
  {
    title: "主页",
    key: "page-Homepage",
    menuId: "page-Homepage",
    icon: "dimension",
    link: "/home",
    hiddenMenu: true,
  },
  {
    title: "通知-流程单详情",
    key: "page-noticeflowdetail",
    menuId: "page-Homepage",
    link: "/noticeflowdetail",
    hiddenMenu: true,
    banbasemenu: true,
  },
  {
    title: "流程门户",
    key: "flow-home",
    menuId: "page-FlowHome",
    icon: "home",
    children: [
      {
        title: "我的待办",
        key: "todo",
        menuId: "page-MyTodo",
        // icon: "order-list",
        link: "/todo",
        pageOperate: {
          claim: "/todo/claim", // 任务签收
          detail: "page-MyTodo-Detail", // 详情
          deal: "/todo/handle", // 处理
          rollback: "icon-entry-process-instance-rollback", // 任务退回按钮
          taskhandle: "/task/handle", // 任务办理
        },
        children: [
          {
            title: "详情",
            key: "todo_detail",
            // menuId: "page-MyTodo-Detail",
            link: "/todo/detail",
            banbasemenu: true,
          },
          {
            title: "处理",
            key: "todo_deal",
            // menuId: "/todo/handle",
            link: "/todo/deal",
            banbasemenu: true,
          },
          {
            title: "流程模版",
            key: "todo_templatepage",
            link: "/todo/templatepage",
            banbasemenu: true,
          },
          {
            title: "流程模版new",
            key: "todo_templatepage_new",
            link: "/todo/templatepagenew",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "我的消息",
        key: "message",
        menuId: "page-MyMessage",
        // icon: "message-circle",
        link: "/message",
        children: [
          {
            title: "详情",
            key: "message_detail",
            // menuId: "page-MyMessage-Detail",
            link: "/message/detail",
            banbasemenu: true,
          },
          {
            title: "流程详情",
            key: "message_noticeflowdetail",
            // menuId: "page-MyMessage-Detail",
            link: "/noticeflowdetail",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "任务中心",
        key: "task_center",
        menuId: "page-TaskCenter",
        link: "/taskcenter",
        children: [
          {
            title: "详情",
            key: "task_detail",
            // menuId: "page-TaskCenter-Detail",
            link: "/taskcenter/detail",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "发起申请",
        key: "flow_list",
        menuId: "page-FlowList",
        link: "/flowlist",
        pageOperate: {
          apply: "icon-entry-process-execute-apply", // 发起申请
        },
      },
      {
        title: "流程委托",
        key: "flow_entrust",
        menuId: "page-FlowEntrust",
        link: "/flowmanage/entrust",
        pageOperate: {},
      },
    ],
  },
  {
    title: "流程管理",
    key: "flowmanage",
    menuId: "page-ProcessManage",
    icon: "adjuster",
    // link: "/home",
    children: [
      {
        title: "流程配置",
        key: "flowmanage_flowconfigure",
        menuId: "page-ProcessConfig",
        link: "/flowmanage/flowconfigure",
        pageOperate: {
          add: "icon-entry-model-add", // 添加
          deploy: "icon-entry-model-deploy", // 部署
          edit: "icon-entry-model-edit", // 编辑
          delete: "icon-entry-model-delete", // 删除
          detail: "/model/detail", // 详情
          copy: "icon-entry-model-copy", // 复制
        },
        // banbasemenu: true,
        children: [
          {
            title: "流程模型",
            key: "flowmanage_flowchart",
            // menuId: "icon-entry-model-edit",
            link: "/flowmanage/flowchart",
            banbasemenu: true,
          },
          {
            title: "详情",
            key: "flowmanage_flowconfigure_detail",
            // menuId: "/model/detail",
            link: "/flowmanage/flowconfigure/detail",
            banbasemenu: true,
          },
          {
            title: "流程图",
            key: "flowmanage_flowconfigure_chartview",
            // menuId: "/model/detail",
            link: "/flowmanage/flowconfigure/chartview",
            banbasemenu: true,
          },
          {
            title: "流程版本管理",
            key: "flowmanage_flowconfigure_versionmanage",
            link: "/flowmanage/flowconfigure/versionmanage",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "表单配置",
        key: "flowmanage_formconfigure",
        menuId: "page-FormConfig",
        link: "/flowmanage/formconfigure",
        pageOperate: {
          add: "icon-entry-form-add", // 添加
          publish: "icon-entry-form-publish", // 部署
          stop: "icon-entry-form-stop", // 停用
          preview: "icon-entry-form-preview", // 预览
          edit: "icon-entry-form-modify", // 编辑
          delete: "icon-entry-form-delete", // 删除
          copy: "icon-entry-form-copy", // 复制
        },
        children: [
          {
            title: "表单模型",
            key: "flowmanage_flowchart",
            // menuId: "icon-entry-form-modify",
            link: "/flowmanage/formbuilder",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "审批意见配置",
        key: "flowmanage_commentconfigure",
        menuId: "page-CommentConfig",
        link: "/flowmanage/commentconfigure",
        pageOperate: {},
      },
      {
        title: "模型事件查看",
        key: "flowmanage_eventConfigure",
        menuId: "page-EventConfigure",
        link: "/flowmanage/eventconfigure",
        pageOperate: {},
      },
    ],
  },
  {
    title: "基础数据",
    key: "basicdata",
    menuId: "page-BasicData",
    icon: "track-curve",
    children: [
      {
        title: "租户管理",
        key: "tenantmanagement",
        menuId: "page-BasicData-Tenant",
        link: "/basicdata/tenantmanagement",
        pageOperate: {
          // 操作权限
          add: "icon-entry-tenant-add",
          edit: "icon-entry-tenant-edit",
          delete: "icon-entry-tenant-delete",
        },
      },
      {
        title: "应用管理",
        key: "app&businessmanagement",
        menuId: "page-BasicData-AppBusi",
        link: "/basicdata/app&businessmanagement",
        pageOperate: {
          add: "icon-system-manage-app-busi-add", // 应用业务新增按钮
          appEdit: "icon-system-manage-app-edit", // 应用编辑按钮
          appDelete: "icon-system-manage-app-del", // 应用删除按钮
          busiEdit: "icon-system-manage-busi-edit", // 业务编辑按钮
          busiDelete: "icon-system-manage-busi-del", // 业务删除按钮
          authorizeadd: "icon-app-authorize-add", // 新增授权按钮
          authorizeCancel: "icon-app-authorize-cancel", // 取消授权按钮
        },
      },
    ],
  },
  /*
  {
    title: "消息管理",
    key: "messagemanage",
    menuId: "page-MessageManage",
    icon: "mail",
    children: [
      {
        title: "模板管理",
        key: "notificationtemplatemanagement",
        menuId: "page-MessageManage-Notification",
        link: "/messagemanage/notificationtemplatemanagement",
        pageOperate: {
          add: "icon-entry-notification-add",
          edit: "icon-entry-notification-edit",
          delete: "icon-entry-notification-delete",
        },
      },
      {
        title: "渠道管理",
        key: "channelmanage",
        menuId: "page-MessageManage-ChannelManage",
        link: "/messagemanage/channelmanage",
        pageOperate: {},
      },
    ],
  },
  */
  // {
  //   title: "流程执行",
  //   key: "flowimplement",
  //   menuId: "page-ProcessExecuted",
  //   hiddenMenu: true,
  //   icon: "track-curve",
  //   children: [
  //     {
  //       title: "流程处理",
  //       key: "flowimplement_flowhandle",
  //       menuId: "page-ProcessExecute-Handle",
  //       link: "/flowimplement/flowhandle",
  //       pageOperate: {
  //         todo: "page-ProcessExecute-Handle-Todo", // 待我处理
  //         processed: "page-ProcessExecute-Handle-Processed", // 我已处理
  //         apply: "page-ProcessExecute-Handle-MyApply", // 我的申请
  //         rollback: "icon-entry-process-instance-rollback", // 任务退回按钮
  //         taskhandle: "/task/handle", // 任务办理
  //         claim: "/task/claim", // 任务签收
  //       },
  //       children: [
  //         {
  //           title: "详情",
  //           key: "flowimplement_flowhandle_detail",
  //           // menuId: "page-ProcessExecute-Handle",
  //           link: "/flowimplement/flowhandle/detail",
  //           banbasemenu: true,
  //         },
  //         {
  //           title: "处理",
  //           key: "flowimplement_flowhandle_deal",
  //           // menuId: "/task/handle",
  //           link: "/flowimplement/flowhandle/deal",
  //           banbasemenu: true,
  //         },
  //       ],
  //     },
  //     {
  //       title: "发起申请",
  //       key: "flowimplement_flowexecution",
  //       menuId: "page-ProcessExecuteApply",
  //       link: "/flowimplement/flowexecution",
  //       pageOperate: {
  //         apply: "icon-entry-process-execute-apply", // 发起申请
  //       },
  //     },
  //   ],
  // },
  {
    title: "监控管理",
    key: "flowmonitor",
    menuId: "page-ProcessMonitor",
    icon: "track-straight",
    // link: "/flowmonitor",
    children: [
      {
        title: "实例监控",
        key: "flowmonitor_instance",
        menuId: "page-ProcessInstanceMonitor",
        link: "/flowmonitor/flowlist",
        pageOperate: {
          suspend: "icon-entry-process-instance-suspend", // 挂起实例
          active: "icon-entry-process-instance-active", // 激活实例
          jump: "icon-entry-process-instance-jump", // 任务跳转
          recall: "icon-entry-process-instance-recall", // 流程撤单
          end: "icon-entry-process-instance-end", // 流程终止
        },
        children: [
          {
            title: "详情",
            key: "flowmonitor_detail",
            // menuId: "page-ProcessMonitor",
            link: "/flowmonitor/flowlist/detail",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "任务监控",
        key: "flowmonitor_task",
        menuId: "page-TaskInstanceMonitor",
        link: "/flowmonitor/tasklist",
        children: [
          {
            title: "详情",
            key: "flowmonitor_detail",
            //   menuId: "page-ProcessMonitor",
            link: "/flowmonitor/tasklist/detail",
            banbasemenu: true,
          },
        ],
      },
      {
        title: "变量监控",
        key: "flowmonitor_variable",
        menuId: "page-VariableMonitor",
        // menuId: "page-TaskInstanceMonitor",
        link: "/flowmonitor/variablelist",
        pageOperate: {},
/*        children: [
          {
            title: "详情",
            key: "task_detail",
            // menuId: "page-TaskCenter-Detail",
            link: "/flowmonitor/variablelist/detail",
            banbasemenu: true,
          },
        ], */
      },
      // {
      //   title: "规则操作监控",
      //   key: "flowmonitor_rules",
      //   menuId: "page-ProcessRulesMonitor",
      //   // TODO:
      //   link: "/flowmonitor/ruleopermonitor",
      //   pageOperate: {},
      // },
      {
        title: "事件异常监控",
        key: "flowmonitor_event",
        menuId: "page-EventExceptionMonitor",
        link: "/flowmonitor/eventlist",
        pageOperate: {},
      },
    ],
  },
  {
    title: "报表管理",
    key: "report",
    menuId: "page-Report",
    icon: "total-records",
    children: [
      {
        title: "实例统计",
        key: "report-flowInstanceTotal",
        menuId: "page-Report-FlowInstanceTotal",
        link: "/report/flowinstancetotal",
      },
      {
        title: "实例明细",
        key: "report_flowInstanceDetail",
        menuId: "page-Report-FlowInstanceDetail",
        link: "/report/flowinstancedetail",
      },
      {
        title: "任务统计",
        key: "report_flowTaskTotal",
        menuId: "page-Report-FlowTaskTotal",
        link: "/report/flowtasktotal",
      },
      {
        title: "任务明细",
        key: "report_flowTaskDetail",
        menuId: "page-Report-FlowTaskDetail",
        link: "/report/flowtaskdetail",
      },
    ],
  },
  {
    title: "系统管理",
    key: "systemmanagement",
    menuId: "page-SystemManage",
    icon: "relationship",
    children: [
      {
        title: "消息模板管理",
        key: "notificationtemplatemanagement",
        menuId: "page-MessageManage-Notification",
        link: "/messagemanage/notificationtemplatemanagement",
        pageOperate: {
          add: "icon-entry-notification-add",
          edit: "icon-entry-notification-edit",
          delete: "icon-entry-notification-delete",
        },
      },
      {
        title: "通知配置",
        key: "noticeConfiguration",
        menuId: "page-SystemManage-NoticeConfiguration",
        link: "/systemmanagement/notice-configuration",
        pageOperate: {},
      },
      {
        title: "日志管理",
        key: "logmanagemet",
        menuId: "page-SystemManage-LogManagemet",
        // TODO:
        link: "/systemmanagement/logmanagemet",
        pageOperate: {},
      },
      {
        title: "接口文档",
        key: "swagger",
        menuId: "page-SystemManage-Swagger",
        // TODO:
        link: "/systemmanagement/swagger",
        pageOperate: {},
      },
      {
        title: "用户手册",
        key: "document",
        menuId: "page-SystemManage-Document",
        link: "/systemmanagement/document",
        pageOperate: {},
      },
      {
        title: "通知公告",
        key: "notices",
        menuId: "page-SystemManage-Notices",
        link: "/systemmanagement/notices",
        pageOperate: {},
      },
      // {
      //   title: "工作日管理",
      //   key: "workingdatemanagemet",
      //   menuId: "page-SystemManage-WorkdingDay",
      //   // TODO:
      //   link: "/systemmanagement/weekdaysmanagement",
      //   pageOperate: {},
      //   children: [
      //     {
      //       title: "工作日设置",
      //       key: "workingdatemanagemet_set",
      //       menuId: "page-SystemManage-SetWeekDays",
      //       link: "/systemmanagement/weekdaysmanagement/setweekdays",
      //       banbasemenu: true,
      //     },
      //   ],
      // },
    ],
  },
  // {
  //   title: "demo",
  //   key: "demo",
  //   link: "/demo",
  // },
];
